﻿export default [
  { name: '欢迎', path: '/welcome', icon: 'smile', component: './Welcome' },
  { path: '/', redirect: '/welcome' },
  { name: '接口列表', path: '/user/interface/list', component: './InterfaceInfo/List' },
  { path: '/user/interface/:id', component: './InterfaceInfo/Detail' },
  {
    path: '/user',
    layout: false,
    routes: [{ name: '登录', path: '/user/login', component: './User/Login' }],
  },
  {
    path: '/admin',
    name: '管理页',
    icon: 'crown',
    access: 'canAdmin',
    routes: [{name: '接口列表', icon: 'table',path: '/admin/interface/list', component: './Admin/InterfaceInfo/List'},
              {name: '接口分析', icon: 'analysis',path: '/admin/interface/analysis', component: './Admin/InterfaceInfo/Analysis'}
    ],
  },
  { path: '*', layout: false, component: './404' },
];
